function t(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];throw new Error("number"==typeof t?"[MobX] minified error nr: "+t+(i.length?" "+i.map(String).join(","):"")+". Find the full error at: https://github.com/mobxjs/mobx/blob/main/packages/mobx/src/errors.ts":"[MobX] "+t)}function n(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:On}function i(){Nn||t("Proxy not available")}function r(t){var n=!1;return function(){if(!n)return n=!0,t.apply(this,arguments)}}function e(t){return"function"==typeof t}function o(t){switch(typeof t){case"string":case"symbol":case"number":return!0}return!1}function u(t){return null!==t&&"object"==typeof t}function s(t){if(!u(t))return!1;var n=Object.getPrototypeOf(t);if(null==n)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return"function"==typeof i&&i.toString()===Rn}function f(t){var n=null==t?void 0:t.constructor;return!!n&&("GeneratorFunction"===n.name||"GeneratorFunction"===n.displayName)}function a(t,n,i){_n(t,n,{enumerable:!1,writable:!0,configurable:!0,value:i})}function c(t,n,i){_n(t,n,{enumerable:!1,writable:!1,configurable:!0,value:i})}function h(t,n){var i="isMobX"+t;return n.prototype[i]=!0,function(t){return u(t)&&!0===t[i]}}function v(t){return t instanceof Map}function l(t){return t instanceof Set}function d(t){return null===t?null:"object"==typeof t?""+t:t}function b(t,n){return Sn.hasOwnProperty.call(t,n)}function p(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,n,i){return n&&p(t.prototype,n),i&&p(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function m(){return(m=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}function w(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,(Object.setPrototypeOf||function(t,n){return t.__proto__=n,t})(t,n)}function j(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function x(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,r=new Array(n);i<n;i++)r[i]=t[i];return r}function O(t,n){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=function(t){if(t){if("string"==typeof t)return x(t,void 0);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(t,void 0):void 0}}(t))||n&&t&&"number"==typeof t.length){i&&(t=i);var r=0;return function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function A(t){return Object.assign((function(n,i){g(n,i,t)}),t)}function g(t,n,i){b(t,Kn)||a(t,Kn,m({},t[Kn])),function(t){return"override"===t.t}(i)||(t[Kn][n]=i)}function _(t,n,i){void 0===n&&(n=kn),void 0===i&&(i=kn);var r=new In(t);return n!==kn&&St(r,n),i!==kn&&Mt(r,i),r}function S(t,n,i){return It(t)?t:Array.isArray(t)?Jn.array(t,{name:i}):s(t)?Jn.object(t,void 0,{name:i}):v(t)?Jn.map(t,{name:i}):l(t)?Jn.set(t,{name:i}):"function"!=typeof t||At(t)||Ct(t)?t:f(t)?ki(t):Si(i,t)}function M(t){return t}function V(t,n){return{t:t,i:n,o:N,u:R}}function N(t,n,i,r){var e;if(null!=(e=this.i)&&e.bound)return null===this.u(t,n,i,!1)?0:1;if(r===t.s)return null===this.u(t,n,i,!1)?0:2;if(At(i.value))return 1;var o=k(t,this,n,i,!1);return _n(r,n,o),2}function R(t,n,i,r){var e=k(t,this,n,i);return t.h(n,e,r)}function k(t,n,i,r,e){var o,u,s,f,a,c,h;void 0===e&&(e=yi.safeDescriptors);var v,l=r.value;return null!=(o=n.i)&&o.bound&&(l=l.bind(null!=(v=t.v)?v:t.s)),{value:z(null!=(u=null==(s=n.i)?void 0:s.name)?u:i.toString(),l,null!=(f=null==(a=n.i)?void 0:a.autoAction)&&f,null!=(c=n.i)&&c.bound?null!=(h=t.v)?h:t.s:void 0),configurable:!e||t.l,enumerable:!1,writable:!e}}function E(t,n){return{t:t,i:n,o:T,u:C}}function T(t,n,i,r){var e;if(r===t.s)return null===this.u(t,n,i,!1)?0:2;if(null!=(e=this.i)&&e.bound&&(!b(t.s,n)||!Ct(t.s[n]))&&null===this.u(t,n,i,!1))return 0;if(Ct(i.value))return 1;var o=K(t,0,0,i,!1,!1);return _n(r,n,o),2}function C(t,n,i,r){var e,o=K(t,0,0,i,null==(e=this.i)?void 0:e.bound);return t.h(n,o,r)}function K(t,n,i,r,e,o){void 0===o&&(o=yi.safeDescriptors);var u,s=r.value;return Ct(s)||(s=ki(s)),e&&((s=s.bind(null!=(u=t.v)?u:t.s)).isMobXFlow=!0),{value:s,configurable:!o||t.l,enumerable:!1,writable:!o}}function L(t,n){return{t:t,i:n,o:I,u:P}}function I(t,n,i){return null===this.u(t,n,i,!1)?0:1}function P(t,n,i,r){return t.p(n,m({},this.i,{get:i.get,set:i.set}),r)}function D(t,n){return{t:t,i:n,o:B,u:q}}function B(t,n,i){return null===this.u(t,n,i,!1)?0:1}function q(t,n,i,r){var e,o;return t.m(n,i.value,null!=(e=null==(o=this.i)?void 0:o.enhancer)?e:S,r)}function G(t){return{t:"true",i:t,o:X,u:W}}function X(t,n,i,r){var e,o,u,s;if(i.get)return Zn.o(t,n,i,r);if(i.set){var a=z(n.toString(),i.set);return r===t.s?null===t.h(n,{configurable:!yi.safeDescriptors||t.l,set:a})?0:2:(_n(r,n,{configurable:!0,set:a}),2)}if(r!==t.s&&"function"==typeof i.value)return f(i.value)?(null!=(s=this.i)&&s.autoBind?ki.bound:ki).o(t,n,i,r):(null!=(u=this.i)&&u.autoBind?Si.bound:Si).o(t,n,i,r);var c,h=!1===(null==(e=this.i)?void 0:e.deep)?Jn.ref:Jn;return"function"==typeof i.value&&null!=(o=this.i)&&o.autoBind&&(i.value=i.value.bind(null!=(c=t.v)?c:t.s)),h.o(t,n,i,r)}function W(t,n,i,r){var e,o,u;return i.get?Zn.u(t,n,i,r):i.set?t.h(n,{configurable:!yi.safeDescriptors||t.l,set:z(n.toString(),i.set)},r):("function"==typeof i.value&&null!=(e=this.i)&&e.autoBind&&(i.value=i.value.bind(null!=(u=t.v)?u:t.s)),(!1===(null==(o=this.i)?void 0:o.deep)?Jn.ref:Jn).u(t,n,i,r))}function H(t){return t||Gn}function U(t){return!0===t.deep?S:!1===t.deep?M:(n=t.defaultDecorator)&&null!=(i=null==(r=n.i)?void 0:r.enhancer)?i:S;var n,i,r}function F(t,n,i){if(!o(n))return It(t)?t:s(t)?Jn.object(t,n,i):Array.isArray(t)?Jn.array(t,n):v(t)?Jn.map(t,n):l(t)?Jn.set(t,n):"object"==typeof t&&null!==t?t:Jn.box(t,n);g(t,n,Xn)}function z(t,n,i,r){function e(){return $(0,i,n,r||this,arguments)}return void 0===i&&(i=!1),e.isMobxAction=!0,ri&&(ei.value=t,Object.defineProperty(e,"name",ei)),e}function $(t,n,i,r,e){var o=J(0,n);try{return i.apply(r,e)}catch(t){throw o.j=t,t}finally{Y(o)}}function J(t,n){var i=yi.trackingDerivation,r=!n||!i;dt();var e=yi.allowStateChanges;r&&(ut(),e=Z(!0));var o={O:r,A:i,g:e,_:ft(!0),S:!1,M:0,V:ii++,N:ni};return ni=o.V,o}function Y(n){ni!==n.V&&t(30),ni=n.N,void 0!==n.j&&(yi.suppressReactionErrors=!0),tt(n.g),at(n._),bt(),n.O&&st(n.A),yi.suppressReactionErrors=!1}function Q(t,n){var i=Z(t);try{return n()}finally{tt(i)}}function Z(t){var n=yi.allowStateChanges;return yi.allowStateChanges=t,n}function tt(t){yi.allowStateChanges=t}function nt(t){return t instanceof vi}function it(t){switch(t.R){case fi.k:return!1;case fi.T:case fi.C:return!0;case fi.K:for(var n=ft(!0),i=ut(),r=t.L,e=r.length,o=0;o<e;o++){var u=r[o];if(hi(u)){if(yi.disableErrorBoundaries)u.get();else try{u.get()}catch(t){return st(i),at(n),!0}if(t.R===fi.C)return st(i),at(n),!0}}return ct(t),st(i),at(n),!1}}function rt(t,n,i){var r=ft(!0);ct(t),t.I=new Array(t.L.length+100),t.P=0,t.D=++yi.runId;var e,o=yi.trackingDerivation;if(yi.trackingDerivation=t,yi.inBatch++,!0===yi.disableErrorBoundaries)e=n.call(i);else try{e=n.call(i)}catch(t){e=new vi(t)}return yi.inBatch--,yi.trackingDerivation=o,function(t){for(var n=t.L,i=t.L=t.I,r=fi.k,e=0,o=t.P,u=0;u<o;u++){var s=i[u];0===s.B&&(s.B=1,e!==u&&(i[e]=s),e++),s.R>r&&(r=s.R)}for(i.length=e,t.I=null,o=n.length;o--;){var f=n[o];0===f.B&&vt(f,t),f.B=0}for(;e--;){var a=i[e];1===a.B&&(a.B=0,ht(a,t))}r!==fi.k&&(t.R=r,t.q())}(t),at(r),e}function et(t){var n=t.L;t.L=[];for(var i=n.length;i--;)vt(n[i],t);t.R=fi.T}function ot(t){var n=ut();try{return t()}finally{st(n)}}function ut(){var t=yi.trackingDerivation;return yi.trackingDerivation=null,t}function st(t){yi.trackingDerivation=t}function ft(t){var n=yi.allowStateReads;return yi.allowStateReads=t,n}function at(t){yi.allowStateReads=t}function ct(t){if(t.R!==fi.k){t.R=fi.k;for(var n=t.L,i=n.length;i--;)n[i].G=fi.k}}function ht(t,n){t.X.add(n),t.G>n.R&&(t.G=n.R)}function vt(t,n){t.X.delete(n),0===t.X.size&&lt(t)}function lt(t){!1===t.W&&(t.W=!0,yi.pendingUnobservations.push(t))}function dt(){yi.inBatch++}function bt(){if(0==--yi.inBatch){mt();for(var t=yi.pendingUnobservations,n=0;n<t.length;n++){var i=t[n];i.W=!1,0===i.X.size&&(i.H&&(i.H=!1,i.onBUO()),i instanceof ci&&i.U())}yi.pendingUnobservations=[]}}function pt(t){var n=yi.trackingDerivation;return null!==n?(n.D!==t.F&&(t.F=n.D,n.I[n.P++]=t,!t.H&&yi.trackingContext&&(t.H=!0,t.onBO())),!0):(0===t.X.size&&yi.inBatch>0&&lt(t),!1)}function yt(t){t.G!==fi.C&&(t.G=fi.C,t.X.forEach((function(t){t.R===fi.k&&t.q(),t.R=fi.C})))}function mt(){yi.inBatch>0||yi.isRunningReactions||wi(wt)}function wt(){yi.isRunningReactions=!0;for(var t=yi.pendingReactions,n=0;t.length>0;){100==++n&&(console.error("[mobx] cycle in reaction: "+t[0]),t.splice(0));for(var i=t.splice(0),r=0,e=i.length;r<e;r++)i[r].$()}yi.isRunningReactions=!1}function jt(){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}}function xt(t){return function(n,i){return e(n)?z(n.name||"<unnamed action>",n,t):e(i)?z(n,i,t):o(i)?g(n,i,t?Ai:xi):o(n)?A(V(t?"autoAction":"action",{name:n,autoAction:t})):void 0}}function Ot(t){return $(0,!1,t,this,void 0)}function At(t){return e(t)&&!0===t.isMobxAction}function gt(t,n){function i(){t(o)}var r,e;void 0===n&&(n=Vn);var o,u=null!=(r=null==(e=n)?void 0:e.name)?r:"Autorun";if(n.scheduler||n.delay){var s=_t(n),f=!1;o=new mi(u,(function(){f||(f=!0,s((function(){f=!1,o.J||o.track(i)})))}),n.onError,n.requiresObservable)}else o=new mi(u,(function(){this.track(i)}),n.onError,n.requiresObservable);return o.Y(),o.Z()}function _t(t){return t.scheduler?t.scheduler:t.delay?function(n){return setTimeout(n,t.delay)}:Mi}function St(t,n,i){return Vt("onBO",t,n,i)}function Mt(t,n,i){return Vt("onBUO",t,n,i)}function Vt(t,n,i,r){var o="function"==typeof r?bn(n,i):bn(n),u=e(r)?r:i,s=t+"L";return o[s]?o[s].add(u):o[s]=new Set([u]),function(){var t=o[s];t&&(t.delete(u),0===t.size&&delete o[s])}}function Nt(t,n,i,r){var e=Cn(n),o=sn(t,r)[Ln];dt();try{Tn(e).forEach((function(t){o.u(t,e[t],!i||!(t in i)||i[t])}))}finally{bt()}return t}function Rt(t){var n,i={name:t.tt};return t.L&&t.L.length>0&&(i.dependencies=(n=t.L,Array.from(new Set(n))).map(Rt)),i}function kt(t){var n={name:t.tt};return function(t){return t.X&&t.X.size>0}(t)&&(n.observers=Array.from(function(t){return t.X}(t)).map(kt)),n}function Et(){this.message="FLOW_CANCELLED"}function Tt(t){e(t.cancel)&&t.cancel()}function Ct(t){return!0===(null==t?void 0:t.isMobXFlow)}function Kt(t,n){if(void 0===n)return hi(t);if(!1===an(t))return!1;if(!t[Ln].nt.has(n))return!1;var i=bn(t,n);return hi(i)}function Lt(t,n){return!!t&&(void 0!==n?!!an(t)&&t[Ln].nt.has(n):an(t)||!!t[Ln]||Pn(t)||ji(t)||hi(t))}function It(t){return Lt(t)}function Pt(n){return an(n)?n[Ln].it():Ui(n)||Yi(n)?Array.from(n.keys()):un(n)?n.map((function(t,n){return n})):void t(5)}function Dt(n,i){return an(n)?n[Ln].rt(i):Ui(n)||Yi(n)?n.has(i):un(n)?i>=0&&i<n.length:void t(10)}function Bt(n){if(an(n))return n[Ln].et();t(38)}function qt(t,n,i){return t.set(n,i),i}function Gt(){t("trace() is not available in production builds");for(var n=!1,i=arguments.length,r=new Array(i),e=0;e<i;e++)r[e]=arguments[e];"boolean"==typeof r[r.length-1]&&(n=r.pop());var o=Xt(r);if(!o)return t("'trace(break?)' can only be used inside a tracked computed value or a Reaction. Consider passing in the computed value or reaction explicitly");o.ot===ai.NONE&&console.log("[mobx.trace] '"+o.tt+"' tracing enabled"),o.ot=n?ai.BREAK:ai.LOG}function Xt(t){switch(t.length){case 0:return yi.trackingDerivation;case 1:return bn(t[0]);case 2:return bn(t[0],t[1])}}function Wt(t,n){void 0===n&&(n=void 0),dt();try{return t.apply(n)}finally{bt()}}function Ht(t,n,i){var r;if("number"==typeof i.timeout){var e=new Error("WHEN_TIMEOUT");r=setTimeout((function(){if(!u[Ln].J){if(u(),!i.onError)throw e;i.onError(e)}}),i.timeout)}i.name="When";var o=z("When-effect",n),u=gt((function(n){Q(!1,t)&&(n.dispose(),r&&clearTimeout(r),o())}),i);return u}function Ut(t,n){var i,r=new Promise((function(r,e){var o=Ht(t,r,m({},n,{onError:e}));i=function(){o(),e(new Error("WHEN_CANCELLED"))}}));return r.cancel=i,r}function Ft(t){return t[Ln]}function zt(t){return void 0!==t.ut&&t.ut.length>0}function $t(t,n){var i=t.ut||(t.ut=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function Jt(n,i){var r=ut();try{for(var e=[].concat(n.ut||[]),o=0,u=e.length;o<u&&((i=e[o](i))&&!i.type&&t(14),i);o++);return i}finally{st(r)}}function Yt(t){return void 0!==t.st&&t.st.length>0}function Qt(t,n){var i=t.st||(t.st=[]);return i.push(n),r((function(){var t=i.indexOf(n);-1!==t&&i.splice(t,1)}))}function Zt(t,n){var i=ut(),r=t.st;if(r){for(var e=0,o=(r=r.slice()).length;e<o;e++)r[e](n);st(i)}}function tn(t,n,r,e){void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),i();var o=new Li(r,n,e,!1);c(o.nt,Ln,o);var u=new Proxy(o.nt,Ki);if(o.v=u,t&&t.length){var s=Z(!0);o.ft(0,0,t),tt(s)}return u}function nn(t,n){"function"==typeof Array.prototype[t]&&(Ii[t]=n(t))}function rn(t){return function(){var n=this[Ln];n.at.reportObserved();var i=n.ct(n.nt);return i[t].apply(i,arguments)}}function en(t){return function(n,i){var r=this,e=this[Ln];return e.at.reportObserved(),e.ct(e.nt)[t]((function(t,e){return n.call(i,t,e,r)}))}}function on(t){return function(){var n=this,i=this[Ln];i.at.reportObserved();var r=i.ct(i.nt),e=arguments[0];return arguments[0]=function(t,i,r){return e(t,i,r,n)},r[t].apply(r,arguments)}}function un(t){return u(t)&&Bi(t[Ln])}function sn(t,n){var i;if(b(t,Ln))return t;var r=null!=(i=null==n?void 0:n.name)?i:"ObservableObject",e=new Zi(t,new Map,String(r),function(t){var n;return t?null!=(n=t.defaultDecorator)?n:G(t):void 0}(n));return a(t,Ln,e),t}function fn(t){return Qi[t]||(Qi[t]={get:function(){return this[Ln].ht(t)},set:function(n){return this[Ln].vt(t,n)}})}function an(t){return!!u(t)&&tr(t[Ln])}function cn(t,n,i){var r;null==(r=t.s[Kn])||delete r[i]}function hn(t){return{enumerable:!1,configurable:!0,get:function(){return this[Ln].lt(t)},set:function(n){this[Ln].dt(t,n)}}}function vn(t){_n(er.prototype,""+t,hn(t))}function ln(t){if(t>ir){for(var n=ir;n<t+100;n++)vn(n);ir=t}}function dn(t,n,i){return new er(t,n,i)}function bn(n,i){if("object"==typeof n&&null!==n){if(un(n))return void 0!==i&&t(23),n[Ln].at;if(Yi(n))return n[Ln];if(Ui(n)){if(void 0===i)return n.bt;var r=n.pt.get(i)||n.yt.get(i);return r||t(25,i,yn(n)),r}if(an(n)){if(!i)return t(26);var o=n[Ln].nt.get(i);return o||t(27,i,yn(n)),o}if(Pn(n)||hi(n)||ji(n))return n}else if(e(n)&&ji(n[Ln]))return n[Ln];t(28)}function pn(n,i){return n||t(29),void 0!==i?pn(bn(n,i)):Pn(n)||hi(n)||ji(n)||Ui(n)||Yi(n)?n:n[Ln]?n[Ln]:void t(24,n)}function yn(t,n){var i;if(void 0!==n)i=bn(t,n);else{if(At(t))return t.name;i=an(t)||Ui(t)||Yi(t)?pn(t):bn(t)}return i.tt}function mn(t,n,i){return void 0===i&&(i=-1),function t(n,i,r,o,u){if(n===i)return 0!==n||1/n==1/i;if(null==n||null==i)return!1;if(n!=n)return i!=i;var s=typeof n;if("function"!==s&&"object"!==s&&"object"!=typeof i)return!1;var f=or.call(n);if(f!==or.call(i))return!1;switch(f){case"[object RegExp]":case"[object String]":return""+n==""+i;case"[object Number]":return+n!=+n?+i!=+i:0==+n?1/+n==1/i:+n==+i;case"[object Date]":case"[object Boolean]":return+n==+i;case"[object Symbol]":return"undefined"!=typeof Symbol&&Symbol.valueOf.call(n)===Symbol.valueOf.call(i);case"[object Map]":case"[object Set]":r>=0&&r++}n=wn(n),i=wn(i);var a="[object Array]"===f;if(!a){if("object"!=typeof n||"object"!=typeof i)return!1;var c=n.constructor,h=i.constructor;if(c!==h&&!(e(c)&&c instanceof c&&e(h)&&h instanceof h)&&"constructor"in n&&"constructor"in i)return!1}if(0===r)return!1;r<0&&(r=-1),u=u||[];for(var v=(o=o||[]).length;v--;)if(o[v]===n)return u[v]===i;if(o.push(n),u.push(i),a){if((v=n.length)!==i.length)return!1;for(;v--;)if(!t(n[v],i[v],r-1,o,u))return!1}else{var l,d=Object.keys(n);if(v=d.length,Object.keys(i).length!==v)return!1;for(;v--;)if(!b(i,l=d[v])||!t(n[l],i[l],r-1,o,u))return!1}return o.pop(),u.pop(),!0}(t,n,i)}function wn(t){return un(t)?t.slice():v(t)||Ui(t)||l(t)||Yi(t)?Array.from(t.entries()):t}function jn(t){return t[Symbol.iterator]=xn,t}function xn(){return this}Object.defineProperty(exports,"__esModule",{value:!0});var On={},An=Object.assign,gn=Object.getOwnPropertyDescriptor,_n=Object.defineProperty,Sn=Object.prototype,Mn=[];Object.freeze(Mn);var Vn={};Object.freeze(Vn);var Nn="undefined"!=typeof Proxy,Rn=Object.toString(),kn=function(){},En=void 0!==Object.getOwnPropertySymbols,Tn="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:En?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Cn=Object.getOwnPropertyDescriptors||function(t){var n={};return Tn(t).forEach((function(i){n[i]=gn(t,i)})),n},Kn=Symbol("mobx-stored-annotations"),Ln=Symbol("mobx administration"),In=function(){function t(t){void 0===t&&(t="Atom"),this.tt=void 0,this.W=!1,this.H=!1,this.X=new Set,this.B=0,this.F=0,this.G=fi.T,this.onBOL=void 0,this.onBUOL=void 0,this.tt=t}var n=t.prototype;return n.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},n.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},n.reportObserved=function(){return pt(this)},n.reportChanged=function(){dt(),yt(this),bt()},n.toString=function(){return this.tt},t}(),Pn=h("Atom",In),Dn={identity:function(t,n){return t===n},structural:function(t,n){return mn(t,n)},default:function(t,n){return Object.is?Object.is(t,n):t===n?0!==t||1/t==1/n:t!=t&&n!=n},shallow:function(t,n){return mn(t,n,1)}},Bn=A({t:"override",o:function(){return 0},u:function(){t("'"+this.t+"' can only be used with 'makeObservable'")}}),qn=G(),Gn={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};Object.freeze(Gn);var Xn=D("observable"),Wn=D("observable.ref",{enhancer:M}),Hn=D("observable.shallow",{enhancer:function(t,n,i){return null==t||an(t)||un(t)||Ui(t)||Yi(t)?t:Array.isArray(t)?Jn.array(t,{name:i,deep:!1}):s(t)?Jn.object(t,void 0,{name:i,deep:!1}):v(t)?Jn.map(t,{name:i,deep:!1}):l(t)?Jn.set(t,{name:i,deep:!1}):void 0}}),Un=D("observable.struct",{enhancer:function(t,n){return mn(t,n)?n:t}}),Fn=A(Xn);Object.assign(F,Fn);var zn,$n,Jn=An(F,{box:function(t,n){var i=H(n);return new ui(t,U(i),i.name,!0,i.equals)},array:function(t,n){var i=H(n);return(!1===yi.useProxies||!1===i.proxy?dn:tn)(t,U(i),i.name)},map:function(t,n){var i=H(n);return new Hi(t,U(i),i.name)},set:function(t,n){var i=H(n);return new Ji(t,U(i),i.name)},object:function(t,n,r){return Nt(!1===yi.useProxies||!1===(null==r?void 0:r.proxy)?sn({},r):function(t,n){var r,e;return i(),null!=(e=(r=(t=sn(t,n))[Ln]).v)?e:r.v=new Proxy(t,Ei)}({},r),t,n)},ref:A(Wn),shallow:A(Hn),deep:Fn,struct:A(Un)}),Yn=L("computed"),Qn=L("computed.struct",{equals:Dn.structural}),Zn=function(t,n){if(o(n))return g(t,n,Yn);if(s(t))return A(L("computed",t));var i=s(n)?n:{};return i.get=t,i.name||(i.name=t.name||""),new ci(i)};Object.assign(Zn,Yn),Zn.struct=A(Qn);var ti,ni=0,ii=1,ri=null!=(zn=null==($n=gn((function(){}),"name"))?void 0:$n.configurable)&&zn,ei={value:"action",configurable:!0,writable:!1,enumerable:!1};ti=Symbol.toPrimitive;var oi,ui=function(t){function n(n,i,r,e,o){var u;return void 0===r&&(r="ObservableValue"),void 0===o&&(o=Dn.default),(u=t.call(this,r)||this).enhancer=void 0,u.tt=void 0,u.equals=void 0,u.wt=!1,u.ut=void 0,u.st=void 0,u.jt=void 0,u.dehancer=void 0,u.enhancer=i,u.tt=r,u.equals=o,u.jt=i(n,void 0,r),u}w(n,t);var i=n.prototype;return i.dehanceValue=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.set=function(t){(t=this.xt(t))!==yi.UNCHANGED&&this.Ot(t)},i.xt=function(t){if(zt(this)){var n=Jt(this,{object:this,type:Ci,newValue:t});if(!n)return yi.UNCHANGED;t=n.newValue}return t=this.enhancer(t,this.jt,this.tt),this.equals(this.jt,t)?yi.UNCHANGED:t},i.Ot=function(t){var n=this.jt;this.jt=t,this.reportChanged(),Yt(this)&&Zt(this,{type:Ci,object:this,newValue:t,oldValue:n})},i.get=function(){return this.reportObserved(),this.dehanceValue(this.jt)},i.At=function(t){return $t(this,t)},i.gt=function(t,n){return n&&t({observableKind:"value",debugObjectName:this.tt,object:this,type:Ci,newValue:this.jt,oldValue:void 0}),Qt(this,t)},i.raw=function(){return this.jt},i.toJSON=function(){return this.get()},i.toString=function(){return this.tt+"["+this.jt+"]"},i.valueOf=function(){return d(this.get())},i[ti]=function(){return this.valueOf()},n}(In),si=h("ObservableValue",ui);oi=Symbol.toPrimitive;var fi,ai,ci=function(){function n(n){this.R=fi.T,this.L=[],this.I=null,this.H=!1,this.W=!1,this.X=new Set,this.B=0,this.D=0,this.F=0,this.G=fi.k,this.P=0,this.jt=new vi(null),this.tt=void 0,this._t=void 0,this.St=!1,this.Mt=!1,this.derivation=void 0,this.Vt=void 0,this.ot=ai.NONE,this.Nt=void 0,this.Rt=void 0,this.kt=void 0,this.Et=void 0,this.onBOL=void 0,this.onBUOL=void 0,n.get||t(31),this.derivation=n.get,this.tt=n.name||"ComputedValue",n.set&&(this.Vt=z("ComputedValue-setter",n.set)),this.Rt=n.equals||(n.compareStructural||n.struct?Dn.structural:Dn.default),this.Nt=n.context,this.kt=n.requiresReaction,this.Et=!!n.keepAlive}var i=n.prototype;return i.q=function(){!function(t){t.G===fi.k&&(t.G=fi.K,t.X.forEach((function(t){t.R===fi.k&&(t.R=fi.K,t.q())})))}(this)},i.onBO=function(){this.onBOL&&this.onBOL.forEach((function(t){return t()}))},i.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(t){return t()}))},i.get=function(){if(this.St&&t(32,this.tt,this.derivation),0!==yi.inBatch||0!==this.X.size||this.Et){if(pt(this),it(this)){var n=yi.trackingContext;this.Et&&!n&&(yi.trackingContext=this),this.trackAndCompute()&&function(t){t.G!==fi.C&&(t.G=fi.C,t.X.forEach((function(n){n.R===fi.K?n.R=fi.C:n.R===fi.k&&(t.G=fi.k)})))}(this),yi.trackingContext=n}}else it(this)&&(this.Tt(),dt(),this.jt=this.Ct(!1),bt());var i=this.jt;if(nt(i))throw i.cause;return i},i.set=function(n){if(this.Vt){this.Mt&&t(33,this.tt),this.Mt=!0;try{this.Vt.call(this.Nt,n)}finally{this.Mt=!1}}else t(34,this.tt)},i.trackAndCompute=function(){var t=this.jt,n=this.R===fi.T,i=this.Ct(!0),r=n||nt(t)||nt(i)||!this.Rt(t,i);return r&&(this.jt=i),r},i.Ct=function(t){this.St=!0;var n,i=Z(!1);if(t)n=rt(this,this.derivation,this.Nt);else if(!0===yi.disableErrorBoundaries)n=this.derivation.call(this.Nt);else try{n=this.derivation.call(this.Nt)}catch(t){n=new vi(t)}return tt(i),this.St=!1,n},i.U=function(){this.Et||(et(this),this.jt=void 0)},i.gt=function(t,n){var i=this,r=!0,e=void 0;return gt((function(){var o=i.get();if(!r||n){var u=ut();t({observableKind:"computed",debugObjectName:i.tt,type:Ci,object:i,newValue:o,oldValue:e}),st(u)}r=!1,e=o}))},i.Tt=function(){},i.toString=function(){return this.tt+"["+this.derivation.toString()+"]"},i.valueOf=function(){return d(this.get())},i[oi]=function(){return this.valueOf()},n}(),hi=h("ComputedValue",ci);!function(t){t[t.T=-1]="NOT_TRACKING_",t[t.k=0]="UP_TO_DATE_",t[t.K=1]="POSSIBLY_STALE_",t[t.C=2]="STALE_"}(fi||(fi={})),function(t){t[t.NONE=0]="NONE",t[t.LOG=1]="LOG",t[t.BREAK=2]="BREAK"}(ai||(ai={}));var vi=function(t){this.cause=void 0,this.cause=t},li=["mobxGuid","spyListeners","enforceActions","computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","allowStateReads","disableErrorBoundaries","runId","UNCHANGED","useProxies"],di=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},bi=!0,pi=!1,yi=function(){var i=n();return i.__mobxInstanceCount>0&&!i.__mobxGlobals&&(bi=!1),i.__mobxGlobals&&i.__mobxGlobals.version!==(new di).version&&(bi=!1),bi?i.__mobxGlobals?(i.__mobxInstanceCount+=1,i.__mobxGlobals.UNCHANGED||(i.__mobxGlobals.UNCHANGED={}),i.__mobxGlobals):(i.__mobxInstanceCount=1,i.__mobxGlobals=new di):(setTimeout((function(){pi||t(35)}),1),new di)}(),mi=function(){function t(t,n,i,r){void 0===t&&(t="Reaction"),this.tt=void 0,this.Kt=void 0,this.Lt=void 0,this.It=void 0,this.L=[],this.I=[],this.R=fi.T,this.B=0,this.D=0,this.P=0,this.J=!1,this.Pt=!1,this.Dt=!1,this.Bt=!1,this.ot=ai.NONE,this.tt=t,this.Kt=n,this.Lt=i,this.It=r}var n=t.prototype;return n.q=function(){this.Y()},n.Y=function(){this.Pt||(this.Pt=!0,yi.pendingReactions.push(this),mt())},n.isScheduled=function(){return this.Pt},n.$=function(){if(!this.J){dt(),this.Pt=!1;var t=yi.trackingContext;if(yi.trackingContext=this,it(this)){this.Dt=!0;try{this.Kt()}catch(t){this.qt(t)}}yi.trackingContext=t,bt()}},n.track=function(t){if(!this.J){dt(),this.Bt=!0;var n=yi.trackingContext;yi.trackingContext=this;var i=rt(this,t,void 0);yi.trackingContext=n,this.Bt=!1,this.Dt=!1,this.J&&et(this),nt(i)&&this.qt(i.cause),bt()}},n.qt=function(t){var n=this;if(this.Lt)this.Lt(t,this);else{if(yi.disableErrorBoundaries)throw t;yi.suppressReactionErrors||console.error("[mobx] uncaught error in '"+this+"'",t),yi.globalReactionErrorHandlers.forEach((function(i){return i(t,n)}))}},n.dispose=function(){this.J||(this.J=!0,this.Bt||(dt(),et(this),bt()))},n.Z=function(){var t=this.dispose.bind(this);return t[Ln]=this,t},n.toString=function(){return"Reaction["+this.tt+"]"},n.trace=function(t){void 0===t&&(t=!1),Gt(this,t)},t}(),wi=function(t){return t()},ji=h("Reaction",mi),xi=V("action"),Oi=V("action.bound",{bound:!0}),Ai=V("autoAction",{autoAction:!0}),gi=V("autoAction.bound",{autoAction:!0,bound:!0}),_i=xt(!1);Object.assign(_i,xi);var Si=xt(!0);Object.assign(Si,Ai),_i.bound=A(Oi),Si.bound=A(gi);var Mi=function(t){return t()},Vi=0;Et.prototype=Object.create(Error.prototype);var Ni=E("flow"),Ri=E("flow.bound",{bound:!0}),ki=Object.assign((function(t,n){if(o(n))return g(t,n,Ni);var i=t,r=i.name||"<unnamed flow>",u=function(){var t,n=this,o=arguments,u=++Vi,s=_i(r+" - runid: "+u+" - init",i).apply(n,o),f=void 0,a=new Promise((function(n,i){function o(t){var n;f=void 0;try{n=_i(r+" - runid: "+u+" - yield "+h++,s.next).call(s,t)}catch(t){return i(t)}c(n)}function a(t){var n;f=void 0;try{n=_i(r+" - runid: "+u+" - yield "+h++,s.throw).call(s,t)}catch(t){return i(t)}c(n)}function c(t){if(!e(null==t?void 0:t.then))return t.done?n(t.value):(f=Promise.resolve(t.value)).then(o,a);t.then(c,i)}var h=0;t=i,o(void 0)}));return a.cancel=_i(r+" - runid: "+u+" - cancel",(function(){try{f&&Tt(f);var n=s.return(void 0),i=Promise.resolve(n.value);i.then(kn,kn),Tt(i),t(new Et)}catch(n){t(n)}})),a};return u.isMobXFlow=!0,u}),Ni);ki.bound=A(Ri);var Ei={has:function(t,n){return Ft(t).rt(n)},get:function(t,n){return Ft(t).lt(n)},set:function(t,n,i){var r;return!!o(n)&&(null==(r=Ft(t).dt(n,i,!0))||r)},deleteProperty:function(t,n){var i;return!!o(n)&&(null==(i=Ft(t).Gt(n,!0))||i)},defineProperty:function(t,n,i){var r;return null==(r=Ft(t).h(n,i))||r},ownKeys:function(t){return Ft(t).et()},preventExtensions:function(){t(13)}},Ti=Symbol("mobx-keys"),Ci="update",Ki={get:function(t,n){var i=t[Ln];return n===Ln?i:"length"===n?i.Xt():"string"!=typeof n||isNaN(n)?b(Ii,n)?Ii[n]:t[n]:i.lt(parseInt(n))},set:function(t,n,i){var r=t[Ln];return"length"===n&&r.Wt(i),"symbol"==typeof n||isNaN(n)?t[n]=i:r.dt(parseInt(n),i),!0},preventExtensions:function(){t(15)}},Li=function(){function n(t,n,i,r){void 0===t&&(t="ObservableArray"),this.Ht=void 0,this.Ut=void 0,this.at=void 0,this.nt=[],this.ut=void 0,this.st=void 0,this.Ft=void 0,this.dehancer=void 0,this.v=void 0,this.zt=0,this.Ht=i,this.Ut=r,this.at=new In(t),this.Ft=function(t,i){return n(t,i,"ObservableArray[..]")}}var i=n.prototype;return i.$t=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.ct=function(t){return void 0!==this.dehancer&&t.length>0?t.map(this.dehancer):t},i.At=function(t){return $t(this,t)},i.gt=function(t,n){return void 0===n&&(n=!1),n&&t({observableKind:"array",object:this.v,debugObjectName:this.at.tt,type:"splice",index:0,added:this.nt.slice(),addedCount:this.nt.length,removed:[],removedCount:0}),Qt(this,t)},i.Xt=function(){return this.at.reportObserved(),this.nt.length},i.Wt=function(n){("number"!=typeof n||isNaN(n)||n<0)&&t("Out of range: "+n);var i=this.nt.length;if(n!==i)if(n>i){for(var r=new Array(n-i),e=0;e<n-i;e++)r[e]=void 0;this.ft(i,0,r)}else this.ft(n,i-n)},i.Jt=function(n,i){n!==this.zt&&t(16),this.zt+=i,this.Ut&&i>0&&ln(n+i+1)},i.ft=function(t,n,i){var r=this,e=this.nt.length;if(void 0===t?t=0:t>e?t=e:t<0&&(t=Math.max(0,e+t)),n=1===arguments.length?e-t:null==n?0:Math.max(0,Math.min(n,e-t)),void 0===i&&(i=Mn),zt(this)){var o=Jt(this,{object:this.v,type:"splice",index:t,removedCount:n,added:i});if(!o)return Mn;n=o.removedCount,i=o.added}if(i=0===i.length?i:i.map((function(t){return r.Ft(t,void 0)})),this.Ut){var u=i.length-n;this.Jt(e,u)}var s=this.Yt(t,n,i);return 0===n&&0===i.length||this.Qt(t,i,s),this.ct(s)},i.Yt=function(t,n,i){var r;if(i.length<1e4)return(r=this.nt).splice.apply(r,[t,n].concat(i));var e=this.nt.slice(t,t+n),o=this.nt.slice(t+n);this.nt.length+=i.length-n;for(var u=0;u<i.length;u++)this.nt[t+u]=i[u];for(var s=0;s<o.length;s++)this.nt[t+i.length+s]=o[s];return e},i.Zt=function(t,n,i){var r=!this.Ht&&!1,e=Yt(this),o=e||r?{observableKind:"array",object:this.v,type:Ci,debugObjectName:this.at.tt,index:t,newValue:n,oldValue:i}:null;this.at.reportChanged(),e&&Zt(this,o)},i.Qt=function(t,n,i){var r=!this.Ht&&!1,e=Yt(this),o=e||r?{observableKind:"array",object:this.v,debugObjectName:this.at.tt,type:"splice",index:t,removed:i,added:n,removedCount:i.length,addedCount:n.length}:null;this.at.reportChanged(),e&&Zt(this,o)},i.lt=function(t){if(t<this.nt.length)return this.at.reportObserved(),this.$t(this.nt[t]);console.warn("[mobx.array] Attempt to read an array index ("+t+") that is out of bounds ("+this.nt.length+"). Please check length first. Out of bound indices will not be tracked by MobX")},i.dt=function(n,i){var r=this.nt;if(n<r.length){var e=r[n];if(zt(this)){var o=Jt(this,{type:Ci,object:this.v,index:n,newValue:i});if(!o)return;i=o.newValue}(i=this.Ft(i,e))!==e&&(r[n]=i,this.Zt(n,i,e))}else n===r.length?this.ft(n,0,[i]):t(17,n,r.length)},n}(),Ii={clear:function(){return this.splice(0)},replace:function(t){var n=this[Ln];return n.ft(0,n.nt.length,t)},toJSON:function(){return this.slice()},splice:function(t,n){for(var i=arguments.length,r=new Array(i>2?i-2:0),e=2;e<i;e++)r[e-2]=arguments[e];var o=this[Ln];switch(arguments.length){case 0:return[];case 1:return o.ft(t);case 2:return o.ft(t,n)}return o.ft(t,n,r)},spliceWithArray:function(t,n,i){return this[Ln].ft(t,n,i)},push:function(){for(var t=this[Ln],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.ft(t.nt.length,0,i),t.nt.length},pop:function(){return this.splice(Math.max(this[Ln].nt.length-1,0),1)[0]},shift:function(){return this.splice(0,1)[0]},unshift:function(){for(var t=this[Ln],n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return t.ft(0,0,i),t.nt.length},reverse:function(){return yi.trackingDerivation&&t(37,"reverse"),this.replace(this.slice().reverse()),this},sort:function(){yi.trackingDerivation&&t(37,"sort");var n=this.slice();return n.sort.apply(n,arguments),this.replace(n),this},remove:function(t){var n=this[Ln],i=n.ct(n.nt).indexOf(t);return i>-1&&(this.splice(i,1),!0)}};nn("concat",rn),nn("flat",rn),nn("includes",rn),nn("indexOf",rn),nn("join",rn),nn("lastIndexOf",rn),nn("slice",rn),nn("toString",rn),nn("toLocaleString",rn),nn("every",en),nn("filter",en),nn("find",en),nn("findIndex",en),nn("flatMap",en),nn("forEach",en),nn("map",en),nn("some",en),nn("reduce",on),nn("reduceRight",on);var Pi,Di,Bi=h("ObservableArrayAdministration",Li),qi={},Gi="add";Pi=Symbol.iterator,Di=Symbol.toStringTag;var Xi,Wi,Hi=function(){function n(n,i,r){var o=this;void 0===i&&(i=S),void 0===r&&(r="ObservableMap"),this.Ft=void 0,this.tt=void 0,this[Ln]=qi,this.pt=void 0,this.yt=void 0,this.bt=void 0,this.ut=void 0,this.st=void 0,this.dehancer=void 0,this.Ft=i,this.tt=r,e(Map)||t(18),this.bt=_("ObservableMap.keys()"),this.pt=new Map,this.yt=new Map,Q(!0,(function(){o.merge(n)}))}var i=n.prototype;return i.rt=function(t){return this.pt.has(t)},i.has=function(t){var n=this;if(!yi.trackingDerivation)return this.rt(t);var i=this.yt.get(t);if(!i){var r=i=new ui(this.rt(t),M,"ObservableMap.key?",!1);this.yt.set(t,r),Mt(r,(function(){return n.yt.delete(t)}))}return i.get()},i.set=function(t,n){var i=this.rt(t);if(zt(this)){var r=Jt(this,{type:i?Ci:Gi,object:this,newValue:n,name:t});if(!r)return this;n=r.newValue}return i?this.tn(t,n):this.nn(t,n),this},i.delete=function(t){var n=this;if(zt(this)&&!Jt(this,{type:"delete",object:this,name:t}))return!1;if(this.rt(t)){var i=Yt(this),r=i?{observableKind:"map",debugObjectName:this.tt,type:"delete",object:this,oldValue:this.pt.get(t).jt,name:t}:null;return Wt((function(){var i;n.bt.reportChanged(),null==(i=n.yt.get(t))||i.Ot(!1),n.pt.get(t).Ot(void 0),n.pt.delete(t)})),i&&Zt(this,r),!0}return!1},i.tn=function(t,n){var i=this.pt.get(t);if((n=i.xt(n))!==yi.UNCHANGED){var r=Yt(this),e=r?{observableKind:"map",debugObjectName:this.tt,type:Ci,object:this,oldValue:i.jt,name:t,newValue:n}:null;i.Ot(n),r&&Zt(this,e)}},i.nn=function(t,n){var i=this;Wt((function(){var r,e=new ui(n,i.Ft,"ObservableMap.key",!1);i.pt.set(t,e),n=e.jt,null==(r=i.yt.get(t))||r.Ot(!0),i.bt.reportChanged()}));var r=Yt(this);r&&Zt(this,r?{observableKind:"map",debugObjectName:this.tt,type:Gi,object:this,name:t,newValue:n}:null)},i.get=function(t){return this.has(t)?this.$t(this.pt.get(t).get()):this.$t(void 0)},i.$t=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.keys=function(){return this.bt.reportObserved(),this.pt.keys()},i.values=function(){var t=this,n=this.keys();return jn({next:function(){var i=n.next(),r=i.done;return{done:r,value:r?void 0:t.get(i.value)}}})},i.entries=function(){var t=this,n=this.keys();return jn({next:function(){var i=n.next(),r=i.done,e=i.value;return{done:r,value:r?void 0:[e,t.get(e)]}}})},i[Pi]=function(){return this.entries()},i.forEach=function(t,n){for(var i,r=O(this);!(i=r()).done;){var e=i.value;t.call(n,e[1],e[0],this)}},i.merge=function(n){var i=this;return Ui(n)&&(n=new Map(n)),Wt((function(){s(n)?function(t){var n=Object.keys(t);if(!En)return n;var i=Object.getOwnPropertySymbols(t);return i.length?[].concat(n,i.filter((function(n){return Sn.propertyIsEnumerable.call(t,n)}))):n}(n).forEach((function(t){return i.set(t,n[t])})):Array.isArray(n)?n.forEach((function(t){return i.set(t[0],t[1])})):v(n)?(n.constructor!==Map&&t(19,n),n.forEach((function(t,n){return i.set(n,t)}))):null!=n&&t(20,n)})),this},i.clear=function(){var t=this;Wt((function(){ot((function(){for(var n,i=O(t.keys());!(n=i()).done;)t.delete(n.value)}))}))},i.replace=function(n){var i=this;return Wt((function(){for(var r,e=function(n){if(v(n)||Ui(n))return n;if(Array.isArray(n))return new Map(n);if(s(n)){var i=new Map;for(var r in n)i.set(r,n[r]);return i}return t(21,n)}(n),o=new Map,u=!1,f=O(i.pt.keys());!(r=f()).done;){var a=r.value;if(!e.has(a))if(i.delete(a))u=!0;else{var c=i.pt.get(a);o.set(a,c)}}for(var h,l=O(e.entries());!(h=l()).done;){var d=h.value,b=d[0],p=d[1],y=i.pt.has(b);if(i.set(b,p),i.pt.has(b)){var m=i.pt.get(b);o.set(b,m),y||(u=!0)}}if(!u)if(i.pt.size!==o.size)i.bt.reportChanged();else for(var w=i.pt.keys(),j=o.keys(),x=w.next(),A=j.next();!x.done;){if(x.value!==A.value){i.bt.reportChanged();break}x=w.next(),A=j.next()}i.pt=o})),this},i.toString=function(){return"[object ObservableMap]"},i.toJSON=function(){return Array.from(this)},i.gt=function(t){return Qt(this,t)},i.At=function(t){return $t(this,t)},y(n,[{key:"size",get:function(){return this.bt.reportObserved(),this.pt.size}},{key:Di,get:function(){return"Map"}}]),n}(),Ui=h("ObservableMap",Hi),Fi={};Xi=Symbol.iterator,Wi=Symbol.toStringTag;var zi,$i,Ji=function(){function n(n,i,r){void 0===i&&(i=S),void 0===r&&(r="ObservableSet"),this.tt=void 0,this[Ln]=Fi,this.pt=new Set,this.at=void 0,this.st=void 0,this.ut=void 0,this.dehancer=void 0,this.Ft=void 0,this.tt=r,e(Set)||t(22),this.at=_(this.tt),this.Ft=function(t,n){return i(t,n,r)},n&&this.replace(n)}var i=n.prototype;return i.$t=function(t){return void 0!==this.dehancer?this.dehancer(t):t},i.clear=function(){var t=this;Wt((function(){ot((function(){for(var n,i=O(t.pt.values());!(n=i()).done;)t.delete(n.value)}))}))},i.forEach=function(t,n){for(var i,r=O(this);!(i=r()).done;){var e=i.value;t.call(n,e,e,this)}},i.add=function(t){var n=this;if(zt(this)&&!Jt(this,{type:Gi,object:this,newValue:t}))return this;if(!this.has(t)){Wt((function(){n.pt.add(n.Ft(t,void 0)),n.at.reportChanged()}));var i=Yt(this);i&&Zt(this,i?{observableKind:"set",debugObjectName:this.tt,type:Gi,object:this,newValue:t}:null)}return this},i.delete=function(t){var n=this;if(zt(this)&&!Jt(this,{type:"delete",object:this,oldValue:t}))return!1;if(this.has(t)){var i=Yt(this),r=i?{observableKind:"set",debugObjectName:this.tt,type:"delete",object:this,oldValue:t}:null;return Wt((function(){n.at.reportChanged(),n.pt.delete(t)})),i&&Zt(this,r),!0}return!1},i.has=function(t){return this.at.reportObserved(),this.pt.has(this.$t(t))},i.entries=function(){var t=0,n=Array.from(this.keys()),i=Array.from(this.values());return jn({next:function(){var r=t;return t+=1,r<i.length?{value:[n[r],i[r]],done:!1}:{done:!0}}})},i.keys=function(){return this.values()},i.values=function(){this.at.reportObserved();var t=this,n=0,i=Array.from(this.pt.values());return jn({next:function(){return n<i.length?{value:t.$t(i[n++]),done:!1}:{done:!0}}})},i.replace=function(n){var i=this;return Yi(n)&&(n=new Set(n)),Wt((function(){Array.isArray(n)||l(n)?(i.clear(),n.forEach((function(t){return i.add(t)}))):null!=n&&t("Cannot initialize set from "+n)})),this},i.gt=function(t){return Qt(this,t)},i.At=function(t){return $t(this,t)},i.toJSON=function(){return Array.from(this)},i.toString=function(){return"[object ObservableSet]"},i[Xi]=function(){return this.values()},y(n,[{key:"size",get:function(){return this.at.reportObserved(),this.pt.size}},{key:Wi,get:function(){return"Set"}}]),n}(),Yi=h("ObservableSet",Ji),Qi=Object.create(null),Zi=function(){function n(t,n,i,r){void 0===n&&(n=new Map),void 0===r&&(r=qn),this.s=void 0,this.nt=void 0,this.tt=void 0,this.in=void 0,this.bt=void 0,this.st=void 0,this.ut=void 0,this.v=void 0,this.l=void 0,this.rn=void 0,this.en=void 0,this.s=t,this.nt=n,this.tt=i,this.in=r,this.bt=new In("ObservableObject.keys"),this.l=s(this.s)}var i=n.prototype;return i.ht=function(t){return this.nt.get(t).get()},i.vt=function(t,n){var i=this.nt.get(t);if(i instanceof ci)return i.set(n),!0;if(zt(this)){var r=Jt(this,{type:Ci,object:this.v||this.s,name:t,newValue:n});if(!r)return null;n=r.newValue}if((n=i.xt(n))!==yi.UNCHANGED){var e=Yt(this),o=e?{type:Ci,observableKind:"object",debugObjectName:this.tt,object:this.v||this.s,oldValue:i.jt,name:t,newValue:n}:null;i.Ot(n),e&&Zt(this,o)}return!0},i.lt=function(t){return yi.trackingDerivation&&!b(this.s,t)&&this.rt(t),this.s[t]},i.dt=function(t,n,i){return void 0===i&&(i=!1),b(this.s,t)?this.nt.has(t)?this.vt(t,n):i?Reflect.set(this.s,t,n):(this.s[t]=n,!0):this.u(t,{value:n,enumerable:!0,writable:!0,configurable:!0},this.in,i)},i.rt=function(t){if(!yi.trackingDerivation)return t in this.s;this.en||(this.en=new Map);var n=this.en.get(t);return n||(n=new ui(t in this.s,M,"ObservableObject.key?",!1),this.en.set(t,n)),n.get()},i.o=function(n,i){if(!0===i&&(i=this.in),!1!==i){if(!(n in this.s)){var r;if(null!=(r=this.s[Kn])&&r[n])return;t(1,i.t,this.tt+"."+n.toString())}for(var e=this.s;e&&e!==Sn;){var o=gn(e,n);if(o){var u=i.o(this,n,o,e);if(0===u)return;if(1===u)break}e=Object.getPrototypeOf(e)}cn(this,0,n)}},i.u=function(t,n,i,r){if(void 0===r&&(r=!1),!0===i&&(i=this.in),!1===i)return this.h(t,n,r);var e=i.u(this,t,n,r);return e&&cn(this,0,t),e},i.h=function(t,n,i){void 0===i&&(i=!1);try{dt();var r=this.Gt(t);if(!r)return r;if(zt(this)){var e=Jt(this,{object:this.v||this.s,name:t,type:Gi,newValue:n.value});if(!e)return null;var o=e.newValue;n.value!==o&&(n=m({},n,{value:o}))}if(i){if(!Reflect.defineProperty(this.s,t,n))return!1}else _n(this.s,t,n);this.on(t,n.value)}finally{bt()}return!0},i.m=function(t,n,i,r){void 0===r&&(r=!1);try{dt();var e=this.Gt(t);if(!e)return e;if(zt(this)){var o=Jt(this,{object:this.v||this.s,name:t,type:Gi,newValue:n});if(!o)return null;n=o.newValue}var u=fn(t),s={configurable:!yi.safeDescriptors||this.l,enumerable:!0,get:u.get,set:u.set};if(r){if(!Reflect.defineProperty(this.s,t,s))return!1}else _n(this.s,t,s);var f=new ui(n,i,"ObservableObject.key",!1);this.nt.set(t,f),this.on(t,f.jt)}finally{bt()}return!0},i.p=function(t,n,i){void 0===i&&(i=!1);try{dt();var r=this.Gt(t);if(!r)return r;if(zt(this)&&!Jt(this,{object:this.v||this.s,name:t,type:Gi,newValue:void 0}))return null;n.name||(n.name="ObservableObject.key"),n.context=this.v||this.s;var e=fn(t),o={configurable:!yi.safeDescriptors||this.l,enumerable:!1,get:e.get,set:e.set};if(i){if(!Reflect.defineProperty(this.s,t,o))return!1}else _n(this.s,t,o);this.nt.set(t,new ci(n)),this.on(t,void 0)}finally{bt()}return!0},i.Gt=function(t,n){if(void 0===n&&(n=!1),!b(this.s,t))return!0;if(zt(this)&&!Jt(this,{object:this.v||this.s,name:t,type:"remove"}))return null;try{var i,r;dt();var e,o=Yt(this),u=this.nt.get(t),s=void 0;if(!u&&o&&(s=null==(e=gn(this.s,t))?void 0:e.value),n){if(!Reflect.deleteProperty(this.s,t))return!1}else delete this.s[t];u&&(this.nt.delete(t),u instanceof ui&&(s=u.jt),yt(u)),this.bt.reportChanged(),null==(i=this.en)||null==(r=i.get(t))||r.set(t in this.s),o&&o&&Zt(this,{type:"remove",observableKind:"object",object:this.v||this.s,debugObjectName:this.tt,oldValue:s,name:t})}finally{bt()}return!0},i.gt=function(t){return Qt(this,t)},i.At=function(t){return $t(this,t)},i.on=function(t,n){var i,r,e=Yt(this);e&&e&&Zt(this,e?{type:Gi,observableKind:"object",debugObjectName:this.tt,object:this.v||this.s,name:t,newValue:n}:null),null==(i=this.en)||null==(r=i.get(t))||r.set(!0),this.bt.reportChanged()},i.et=function(){return this.bt.reportObserved(),Tn(this.s)},i.it=function(){return this.bt.reportObserved(),Object.keys(this.s)},n}(),tr=h("ObservableObjectAdministration",Zi),nr=hn(0),ir=0,rr=function(){};zi=rr,$i=Array.prototype,Object.setPrototypeOf?Object.setPrototypeOf(zi.prototype,$i):void 0!==zi.prototype.__proto__?zi.prototype.__proto__=$i:zi.prototype=$i;var er=function(t,n,i){function r(n,i,r,e){var o;void 0===r&&(r="ObservableArray"),void 0===e&&(e=!1),o=t.call(this)||this;var u=new Li(r,i,e,!0);if(u.v=j(o),c(j(o),Ln,u),n&&n.length){var s=Z(!0);o.spliceWithArray(0,0,n),tt(s)}return Object.defineProperty(j(o),"0",nr),o}w(r,t);var e=r.prototype;return e.concat=function(){this[Ln].at.reportObserved();for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return Array.prototype.concat.apply(this.slice(),n.map((function(t){return un(t)?t.slice():t})))},e[i]=function(){var t=this,n=0;return jn({next:function(){return n<t.length?{value:t[n++],done:!1}:{done:!0,value:void 0}}})},y(r,[{key:"length",get:function(){return this[Ln].Xt()},set:function(t){this[Ln].Wt(t)}},{key:n,get:function(){return"Array"}}]),r}(rr,Symbol.toStringTag,Symbol.iterator);Object.entries(Ii).forEach((function(t){var n=t[0];"concat"!==n&&a(er.prototype,n,t[1])})),ln(1e3);var or=Sn.toString;["Symbol","Map","Set"].forEach((function(i){void 0===n()[i]&&t("MobX requires global '"+i+"' to be available or polyfilled")})),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:jt,extras:{getDebugName:yn},$mobx:Ln}),exports.$mobx=Ln,exports.FlowCancellationError=Et,exports.ObservableMap=Hi,exports.ObservableSet=Ji,exports.Reaction=mi,exports._allowStateChanges=Q,exports._allowStateChangesInsideComputed=Ot,exports._allowStateReadsEnd=at,exports._allowStateReadsStart=ft,exports._autoAction=Si,exports._endAction=Y,exports._getAdministration=pn,exports._getGlobalState=function(){return yi},exports._interceptReads=function(t,n,i){var r;return Ui(t)||un(t)||si(t)?r=pn(t):an(t)&&(r=pn(t,n)),r.dehancer="function"==typeof n?n:i,function(){r.dehancer=void 0}},exports._isComputingDerivation=function(){return null!==yi.trackingDerivation},exports._resetGlobalState=function(){var t=new di;for(var n in t)-1===li.indexOf(n)&&(yi[n]=t[n]);yi.allowStateChanges=!yi.enforceActions},exports._startAction=J,exports.action=_i,exports.autorun=gt,exports.comparer=Dn,exports.computed=Zn,exports.configure=function(i){!0===i.isolateGlobalState&&function(){if((yi.pendingReactions.length||yi.inBatch||yi.isRunningReactions)&&t(36),pi=!0,bi){var i=n();0==--i.__mobxInstanceCount&&(i.__mobxGlobals=void 0),yi=new di}}();var r,e,o=i.useProxies,u=i.enforceActions;if(void 0!==o&&(yi.useProxies="always"===o||"never"!==o&&"undefined"!=typeof Proxy),"ifavailable"===o&&(yi.verifyProxies=!0),void 0!==u){var s="always"===u?"always":"observed"===u;yi.enforceActions=s,yi.allowStateChanges=!0!==s&&"always"!==s}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in i&&(yi[t]=!!i[t])})),yi.allowStateReads=!yi.observableRequiresReaction,i.reactionScheduler&&(r=i.reactionScheduler,e=wi,wi=function(t){return r((function(){return e(t)}))})},exports.createAtom=_,exports.defineProperty=function(n,i,r){if(an(n))return n[Ln].h(i,r);t(39)},exports.entries=function(n){return an(n)?Pt(n).map((function(t){return[t,n[t]]})):Ui(n)?Pt(n).map((function(t){return[t,n.get(t)]})):Yi(n)?Array.from(n.entries()):un(n)?n.map((function(t,n){return[n,t]})):void t(7)},exports.extendObservable=Nt,exports.flow=ki,exports.flowResult=function(t){return t},exports.get=function(n,i){if(Dt(n,i))return an(n)?n[Ln].lt(i):Ui(n)?n.get(i):un(n)?n[i]:void t(11)},exports.getAtom=bn,exports.getDebugName=yn,exports.getDependencyTree=function(t,n){return Rt(bn(t,n))},exports.getObserverTree=function(t,n){return kt(bn(t,n))},exports.has=Dt,exports.intercept=function(t,n,i){return e(i)?function(t,n,i){return pn(t,n).At(i)}(t,n,i):function(t,n){return pn(t).At(n)}(t,n)},exports.isAction=At,exports.isBoxedObservable=si,exports.isComputed=function(t){return Kt(t)},exports.isComputedProp=function(t,n){return Kt(t,n)},exports.isFlow=Ct,exports.isFlowCancellationError=function(t){return t instanceof Et},exports.isObservable=It,exports.isObservableArray=un,exports.isObservableMap=Ui,exports.isObservableObject=an,exports.isObservableProp=function(t,n){return Lt(t,n)},exports.isObservableSet=Yi,exports.keys=Pt,exports.makeAutoObservable=function(t,n,i){if(s(t))return Nt(t,t,n,i);var r=sn(t,i)[Ln];if(!t[Ti]){var e=Object.getPrototypeOf(t),o=new Set([].concat(Tn(t),Tn(e)));o.delete("constructor"),o.delete(Ln),a(e,Ti,o)}dt();try{t[Ti].forEach((function(t){return r.o(t,!n||!(t in n)||n[t])}))}finally{bt()}return t},exports.makeObservable=function(t,n,i){var r=sn(t,i)[Ln];dt();try{null!=n||(n=function(t){return b(t,Kn)||a(t,Kn,m({},t[Kn])),t[Kn]}(t)),Tn(n).forEach((function(t){return r.o(t,n[t])}))}finally{bt()}return t},exports.observable=Jn,exports.observe=function(t,n,i,r){return e(i)?function(t,n,i,r){return pn(t,n).gt(i,r)}(t,n,i,r):function(t,n,i){return pn(t).gt(n,i)}(t,n,i)},exports.onBecomeObserved=St,exports.onBecomeUnobserved=Mt,exports.onReactionError=function(t){return yi.globalReactionErrorHandlers.push(t),function(){var n=yi.globalReactionErrorHandlers.indexOf(t);n>=0&&yi.globalReactionErrorHandlers.splice(n,1)}},exports.override=Bn,exports.ownKeys=Bt,exports.reaction=function(t,n,i){function r(){if(d=!1,!p.J){var n=!1;p.track((function(){var i=Q(!1,(function(){return t(p)}));n=l||!b(s,i),f=s,s=i})),(l&&i.fireImmediately||!l&&n)&&c(s,f,p),l=!1}}var e;void 0===i&&(i=Vn);var o,u,s,f,a=null!=(e=i.name)?e:"Reaction",c=_i(a,i.onError?(o=i.onError,u=n,function(){try{return u.apply(this,arguments)}catch(t){o.call(this,t)}}):n),h=!i.scheduler&&!i.delay,v=_t(i),l=!0,d=!1,b=i.compareStructural?Dn.structural:i.equals||Dn.default,p=new mi(a,(function(){l||h?r():d||(d=!0,v(r))}),i.onError,i.requiresObservable);return p.Y(),p.Z()},exports.remove=function(n,i){an(n)?n[Ln].Gt(i):Ui(n)||Yi(n)?n.delete(i):un(n)?("number"!=typeof i&&(i=parseInt(i,10)),n.splice(i,1)):t(9)},exports.runInAction=Ot,exports.set=function n(i,r,e){if(2!==arguments.length||Yi(i))an(i)?i[Ln].dt(r,e):Ui(i)?i.set(r,e):Yi(i)?i.add(r):un(i)?("number"!=typeof r&&(r=parseInt(r,10)),r<0&&t("Invalid index: '"+r+"'"),dt(),r>=i.length&&(i.length=r+1),i[r]=e,bt()):t(8);else{dt();var o=r;try{for(var u in o)n(i,u,o[u])}finally{bt()}}},exports.spy=jt,exports.toJS=function(t){return function t(n,i){if(null==n||"object"!=typeof n||n instanceof Date||!It(n))return n;if(si(n)||hi(n))return t(n.get(),i);if(i.has(n))return i.get(n);if(un(n)){var r=qt(i,n,new Array(n.length));return n.forEach((function(n,e){r[e]=t(n,i)})),r}if(Yi(n)){var e=qt(i,n,new Set);return n.forEach((function(n){e.add(t(n,i))})),e}if(Ui(n)){var o=qt(i,n,new Map);return n.forEach((function(n,r){o.set(r,t(n,i))})),o}var u=qt(i,n,{});return Bt(n).forEach((function(r){Sn.propertyIsEnumerable.call(n,r)&&(u[r]=t(n[r],i))})),u}(t,new Map)},exports.trace=Gt,exports.transaction=Wt,exports.untracked=ot,exports.values=function(n){return an(n)?Pt(n).map((function(t){return n[t]})):Ui(n)?Pt(n).map((function(t){return n.get(t)})):Yi(n)?Array.from(n.values()):un(n)?n.slice():void t(6)},exports.when=function(t,n,i){return 1===arguments.length||n&&"object"==typeof n?Ut(t,n):Ht(t,n,i||{})};
//# sourceMappingURL=mobx.cjs.production.min.js.map
